package com.prawn.user.pojo;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.SelectBeforeUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
/**
 * 实体类
 * @author Administrator
 *
 */
@Entity
@Table(name="sys_user")
@DynamicInsert
@DynamicUpdate
public class User implements Serializable{

	@Id
	private String id;//用户编号
	private String companyId;//归属机构
	private String officeId;//归属部门
	private String loginName;//登录名
	private String password;//密码
	private String no;//工号
	private String realname;//姓名
	private String email;//邮箱
	private String phone;//电话
	private String mobile;//手机
	private String eduLeve;//学历
	private String sex;//性别
	private Integer age;//年龄
	private String job;//工作职位
	private String tagInfo;//用户标签信息（预留字段）
	private String userType;//用户类型（引用数据字典）
	private String photo;//用户头像
	private String loginIp;//最后登陆IP
	private java.util.Date loginDate;//最后登陆时间
	private String loginFlag;//用户状态，是否可登录(0:正常
	private String remarks;//备注信息
	private String createBy;//创建者
	private java.util.Date createDate;//创建时间
	private String updateBy;//更新者
	private java.util.Date updateDate;//更新时间
	private String delFlag;//删除标记（虚拟删除，并不删除数据库表数据，0：正常，1：删除）

	
	public String getId() {		
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}

	public String getCompanyId() {		
		return companyId;
	}
	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

	public String getOfficeId() {		
		return officeId;
	}
	public void setOfficeId(String officeId) {
		this.officeId = officeId;
	}

	public String getLoginName() {		
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getPassword() {		
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}

	public String getNo() {		
		return no;
	}
	public void setNo(String no) {
		this.no = no;
	}

	public String getRealname() {		
		return realname;
	}
	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getEmail() {		
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {		
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getMobile() {		
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getEduLeve() {		
		return eduLeve;
	}
	public void setEduLeve(String eduLeve) {
		this.eduLeve = eduLeve;
	}

	public String getSex() {		
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}

	public Integer getAge() {		
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}

	public String getJob() {		
		return job;
	}
	public void setJob(String job) {
		this.job = job;
	}

	public String getTagInfo() {		
		return tagInfo;
	}
	public void setTagInfo(String tagInfo) {
		this.tagInfo = tagInfo;
	}

	public String getUserType() {		
		return userType;
	}
	public void setUserType(String userType) {
		this.userType = userType;
	}

	public String getPhoto() {		
		return photo;
	}
	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public String getLoginIp() {		
		return loginIp;
	}
	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}

	public java.util.Date getLoginDate() {		
		return loginDate;
	}
	public void setLoginDate(java.util.Date loginDate) {
		this.loginDate = loginDate;
	}

	public String getLoginFlag() {		
		return loginFlag;
	}
	public void setLoginFlag(String loginFlag) {
		this.loginFlag = loginFlag;
	}

	public String getRemarks() {		
		return remarks;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getCreateBy() {		
		return createBy;
	}
	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public java.util.Date getCreateDate() {		
		return createDate;
	}
	public void setCreateDate(java.util.Date createDate) {
		this.createDate = createDate;
	}

	public String getUpdateBy() {		
		return updateBy;
	}
	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	public java.util.Date getUpdateDate() {		
		return updateDate;
	}
	public void setUpdateDate(java.util.Date updateDate) {
		this.updateDate = updateDate;
	}

	public String getDelFlag() {		
		return delFlag;
	}
	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	@Override
	public String toString() {
		return "User{" +
				"id='" + id + '\'' +
				", companyId='" + companyId + '\'' +
				", officeId='" + officeId + '\'' +
				", loginName='" + loginName + '\'' +
				", password='" + password + '\'' +
				", no='" + no + '\'' +
				", realname='" + realname + '\'' +
				", email='" + email + '\'' +
				", phone='" + phone + '\'' +
				", mobile='" + mobile + '\'' +
				", eduLeve='" + eduLeve + '\'' +
				", sex='" + sex + '\'' +
				", age=" + age +
				", job='" + job + '\'' +
				", tagInfo='" + tagInfo + '\'' +
				", userType='" + userType + '\'' +
				", photo='" + photo + '\'' +
				", loginIp='" + loginIp + '\'' +
				", loginDate=" + loginDate +
				", loginFlag='" + loginFlag + '\'' +
				", remarks='" + remarks + '\'' +
				", createBy='" + createBy + '\'' +
				", createDate=" + createDate +
				", updateBy='" + updateBy + '\'' +
				", updateDate=" + updateDate +
				", delFlag='" + delFlag + '\'' +
				'}';
	}
}
